<div class="panel panel-default">
    <div class="panel-heading">{$main.title}</div>
    <div class="panel-body">
        <!-- 画廊 -->
        {foreach from="$main.list" item="item" name="item"}
        <div class="col-sm-6 col-md-4">
            <a class="thumbnail" href="{$item.link}" title="{$item.title|strip_tags}">
                <img style="width:100%;height:100px;background-color:#f1f1f1;"
                    src="{if (isset($setting['cdn_speed']) && $setting.cdn_speed == '1') || !$item.cover}{else}{$item.cover}{/if}"
                    data-src="{if $item.cover}{$item.cover}{else}{/if}"
                    alt="{$item.title|strip_tags}"
                    title="{$item.title|strip_tags}" />
                <div class="caption">
                    <h2 style="margin:0;font-size:14.7px;">{$item.title}</h2>
                </div>
            </a>
        </div>
        {/foreach}

        <!-- 分页 -->
        {include file='index/inc/pager.html'}

    </div>
</div>